package com.sky.cqculture.pojo;

import java.time.LocalDateTime;
import java.util.Date;

public class Comment {
    private Integer id;           // 评论ID
    private Integer userId;       // 用户ID
    private Integer heritageId;   // 非遗项目ID
    private String author;        // 评论作者
    private String content;       // 评论内容
    private LocalDateTime createTime;      // 评论时间

    public Comment() {
    }

    public Comment(Integer id, Integer userId, Integer heritageId, String author, String content, LocalDateTime createTime) {
        this.id = id;
        this.userId = userId;
        this.heritageId = heritageId;
        this.author = author;
        this.content = content;
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getHeritageId() {
        return heritageId;
    }

    public void setHeritageId(Integer heritageId) {
        this.heritageId = heritageId;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", userId=" + userId +
                ", heritageId=" + heritageId +
                ", author='" + author + '\'' +
                ", content='" + content + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}